-
-
Notifications
You must be signed in to change notification settings - Fork 114
feat: add discrete saving to callback structs #1116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
d0d86c3 to
4d0ac40
Compare
78fae9a to
5014cba
Compare
| get the values to save. If it returns `nothing`, then the save does not happen. | ||
| """ | ||
| function save_discretes!(integ::DEIntegrator, timeseries_idx) | ||
| function save_discretes!(integ::DEIntegrator, timeseries_idx; skip_duplicates = false) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this undocumented arg?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a docstring. It's to avoid saving variables twice.
5014cba to
be03c50
Compare
src/callbacks.jl
Outdated
| # Extended help | ||
| - `discrete_save_idxs`: An iterable of timeseries indexes to save after the callback triggers. MTK-only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timeseries indexes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The index used to refer to a clock partition. This is terminology SII uses.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed to saved_clock_partitions
be03c50 to
30561e7
Compare
|
The test failure on Core seems related. |
30561e7 to
2e4aaad
Compare
|
That was a funny accident - I used find-and-replace to rename the type parameter |
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.
Additional context
Add any other context about the problem here.